﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
    xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>
        Create Mail Item
      </Title>
    </Header>
    <Snippet>
      <Code Language="CSharp">
        <![CDATA[
		private void CreateMailItem()
		{
			Outlook.MailItem mailItem = (Outlook.MailItem)
				this.CreateItem(Outlook.OlItemType.olMailItem);
			mailItem.Subject = "This is the subject";
			mailItem.To = "someone@example.com";
			mailItem.Body = "This is the message.";
			mailItem.Importance = Outlook.OlImportance.olImportanceLow;
			mailItem.Display(false);
		}
		]]>
	</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>